package com.itheima.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Slf4j
public class DemoAspect3 {
    @Around("@annotation(anno)")
    public Object around(ProceedingJoinPoint pjp,TestAnno anno) throws Throwable{
        log.info("anno name:{}",anno.name());

        log.info("注解切到了------------------");
        return pjp.proceed();
    }
}
